<?php echo elgg_view('golfscore/title');?>
<?php
/**
 * Add bookmark page
 *
 * @package Bookmarks
 */

gatekeeper();
elgg_set_context('owner');
elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());


$default = array (
			'title' => $title,
			'courses' => elgg_get_golf_course(),
		);
$body = elgg_view_form('golfscore/save', array('id' => '__enter_score_form'), $default);

echo $body;

?>

<script type="text/javascript">
	changeTitle({
				'uname':'<?php echo elgg_get_logged_in_user_entity()->name;?>',
				'pageid':VIEW_ENTER_SCORE,
			});
	$('#__score').find('input:first-child').focus();
</script>